package ggze.GGZEServer.home.enums;

public class BlanceEnum {
    public enum BLANCE{
        BLANCE_ADD("0", "充值");

        private String value;
        private String label;

        BLANCE(String label, String value) {
            this.label=label;
            this.value=value;
        }
        public static String getValues(String value) {
            BLANCE[] businessModeEnums = values();
            for (BLANCE businessModeEnum : businessModeEnums) {
                if (businessModeEnum.getValue().equals(value)) {
                    return businessModeEnum.getLabel();
                }
            }
            return null;
        }

        public static String getLables(String value) {
            BLANCE[] businessModeEnums = values();
            for (BLANCE businessModeEnum : businessModeEnums) {
                if (businessModeEnum.getLabel().equals(value)) {
                    return businessModeEnum.getValue();
                }
            }
            return null;
        }

        public String getValue(){
            return this.value;
        }

        public String getLabel(){
            return this.label;
        }
    }
    public enum CONSUME{
        CONSUME_ADD("0", "充值");

        private String value;
        private String label;

        CONSUME(String label, String value) {
            this.label=label;
            this.value=value;
        }
        public static String getValues(String value) {
            CONSUME[] businessModeEnums = values();
            for (CONSUME businessModeEnum : businessModeEnums) {
                if (businessModeEnum.getValue().equals(value)) {
                    return businessModeEnum.getLabel();
                }
            }
            return null;
        }

        public static String getLables(String value) {
            CONSUME[] businessModeEnums = values();
            for (CONSUME businessModeEnum : businessModeEnums) {
                if (businessModeEnum.getLabel().equals(value)) {
                    return businessModeEnum.getValue();
                }
            }
            return null;
        }

        public String getValue(){
            return this.value;
        }

        public String getLabel(){
            return this.label;
        }
    }
    public enum EXPEND{
        EXPEND_HD_ADD("0", "活动区购买"),
        EXPEND_XY_ADD("1", "信用区购买");


        private String value;
        private String label;

        EXPEND(String label, String value) {
            this.label=label;
            this.value=value;
        }
        public static String getValues(String value) {
            EXPEND[] businessModeEnums = values();
            for (EXPEND businessModeEnum : businessModeEnums) {
                if (businessModeEnum.getValue().equals(value)) {
                    return businessModeEnum.getLabel();
                }
            }
            return null;
        }

        public static String getLables(String value) {
            EXPEND[] businessModeEnums = values();
            for (EXPEND businessModeEnum : businessModeEnums) {
                if (businessModeEnum.getLabel().equals(value)) {
                    return businessModeEnum.getValue();
                }
            }
            return null;
        }

        public String getValue(){
            return this.value;
        }

        public String getLabel(){
            return this.label;
        }
    }
}
